/*    */ package handling.login.handler;
/*    */ 
/*    */ import client.MapleClient;
/*    */ import handling.channel.ChannelServer;
/*    */ import java.util.LinkedHashMap;
/*    */ import java.util.Map;
/*    */ import tools.data.input.LittleEndianAccessor;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class UpdateCharCards
/*    */ {
/*    */   public static void handlePacket(LittleEndianAccessor slea, MapleClient c) {
/* 20 */     if (!c.isLoggedIn()) {
/* 21 */       c.getSession().close();
/*    */       return;
/*    */     } 
/* 24 */     Map<Integer, Integer> cids = new LinkedHashMap<>();
/* 25 */     for (int i = 1; i <= 9; i++) {
/* 26 */       int charId = slea.readInt();
/* 27 */       if ((!c.login_Auth(charId) && charId != 0) || ChannelServer.getInstance(c.getChannel()) == null || c.getWorld() != 0) {
/* 28 */         c.getSession().close();
/*    */         return;
/*    */       } 
/* 31 */       cids.put(Integer.valueOf(i), Integer.valueOf(charId));
/*    */     } 
/* 33 */     c.updateCharacterCards(cids);
/*    */   }
/*    */ }


/* Location:              C:\PGX\Server.jar!\handling\login\handler\UpdateCharCards.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */